projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9724b5
)
CC Mode: Fix wrong fontification of FOO in ASSERT (FOO && !BAR)
author
Alan Mackenzie
<acm@muc.de>
Sat, 21 Sep 2019 12:35:34 +0000
(12:35 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Sat, 21 Sep 2019 12:35:34 +0000
(12:35 +0000)
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't recognize the
construct in CASE 18, unless additionally at-decl-end is set.
lisp/progmodes/cc-engine.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-engine.el
b/lisp/progmodes/cc-engine.el
index 4916b1dabb8088a6a375a6ee56d3af3b53191794..6d7d322def7a0979acef9e4f1d0e10d1fc41bae8 100644
(file)
--- a/
lisp/progmodes/cc-engine.el
+++ b/
lisp/progmodes/cc-engine.el
@@
-10100,7
+10100,8
@@
This function might do hidden buffer changes."
(throw 'at-decl-or-cast t)))))
;; CASE 18
- (when (and (not (memq context '(nil top)))
+ (when (and at-decl-end
+ (not (memq context '(nil top)))
(or (and got-prefix (not got-number))
(and (eq context 'decl)
(not c-recognize-paren-inits)